package com.manor.paradise.activity

import android.content.Intent
import com.lxj.xpopup.XPopup
import com.lxj.xpopup.enums.PopupAnimation
import com.manor.common.activity.AbsActivity
import com.manor.paradise.R
import com.manor.paradise.dialog.EdPasswordDialog
import kotlinx.android.synthetic.main.activity_setup.*

/**
 * 设置
 */
class SetUpActivity : AbsActivity() {
    override fun getLayoutId(): Int {
        return R.layout.activity_setup
    }

    override fun main() {
        super.main()
        im_back.setOnClickListener { finish() }
        ll_TransactionPassword.setOnClickListener {
            this?.run {
                val shopInfoDialog = EdPasswordDialog(this)
                XPopup.Builder(this)
                        .hasShadowBg(true)
                        .dismissOnTouchOutside(true)
                        .popupAnimation(PopupAnimation.ScaleAlphaFromCenter)
                        .asCustom(shopInfoDialog)
                        .show()

            }
            //   startActivity(Intent(this@SetUpActivity, TransactionPasswordActivity::class.java))
        }
        llShippingAddress.setOnClickListener {
            startActivity(Intent(this@SetUpActivity, ShippingAddressActivity::class.java))
        }
    }
}